﻿using System.Collections.Generic;
using CID.Execution.Support.Information;

namespace CID.Execution.Support.PackageHandling
{
    public class FileSystemBasedPackageHandlingToken : IPackageHandlingToken
    {
        public FileSystemBasedPackageHandlingToken(string tempPath, string packagePath)
        {
            TempPath = tempPath;
            PackagePath =  OriginalPackagePath = packagePath;
        }

        public string TempPath { get; private set; }

        public string PackagePath { get; protected set; }
        
        public string OriginalPackagePath { get; private set; }

        public IEnumerable<ParameterValueInfo> GetPackageRelatedParameterValues()
        {
            return new ParameterValueInfo[] { ParameterValueInfo.CreateAdditionalParameterValue(ParameterValueInfo.ReservedParameterNames.PackagePath, PackagePath) };
        }
    }
}
